package test.com.corecode.common.jmail;

import com.corecode.common.jmail.MailFacade;
import com.corecode.common.jmail.domain.MailInfo;

public class JmailDemo {
	
	private static void testSend() {
		int i = 1111111111;
		MailInfo info = new MailInfo();
		info.setSmtpServer("mail.t4game.com");
		info.setSmtpPort(25);
		info.setAccount("luowei@t4game.com");
		info.setPass("*******");
		info.setSenderAddr("luowei@t4game.com");
		info.setReceiverAddr(new String[] {"luowei@t4game.com"});
		info.setSubject("test");
		info.setContent("hello world!!");
		
		MailFacade.sendMailWithGeneralProtocol(info);
	}
	
	public static void main(String[] args) {
		// testSend();
		testReceive();
	}

	private static void testReceive() {
		
	}
}
